package com.kensure.shike.zhang.dao;

import co.kensure.annotation.MyBatisRepository;
import co.kensure.frame.JSBaseDao;
import java.util.List;
import java.util.Collection;
import java.util.Map;
import com.kensure.shike.zhang.model.SKUserZhang;

/**
 * 用户余额流水Dao接口类
 * 
 * @author fankd created on 2018-9-9
 * @since
 */
@MyBatisRepository
public interface SKUserZhangDao extends JSBaseDao<SKUserZhang> {

	public SKUserZhang selectOne(Long id);

	public List<SKUserZhang> selectByIds(Collection<Long> ids);

	public List<SKUserZhang> selectByWhere(Map<String, Object> parameters);

	public long selectCountByWhere(Map<String, Object> parameters);
	
	public Double sumYueByWhere(Map<String, Object> parameters);
	
	public Double sumAllYueByWhere(Map<String, Object> parameters);

	public boolean insert(SKUserZhang obj);

	public boolean update(SKUserZhang obj);

	public boolean updateByMap(Map<String, Object> params);

}
